package com.yizhuoyan.his.service.doctor.outpatient;

import com.yizhuoyan.his.ao.CaseDiagnoseResultAo;
import com.yizhuoyan.his.ao.CaseMedicalRecordAo;
import com.yizhuoyan.his.dto.QueryResult;
import com.yizhuoyan.his.entity.CaseMedicalRecordEntity;

/**
 *病历相关服务
 */
public interface CaseOutpatientMedicalRecordService {
    /**
     *添加病历
     * @param ao 传入新的病历
     * @throws Exception
     */
    void addCaseMedicalRecord(CaseMedicalRecordAo ao)throws Exception;

    /**
     * 添加诊断结果
     * @param ao 传入诊断结果
     * @throws Exception
     */
    void addCaseDiagnoseResult(CaseDiagnoseResultAo ao)throws Exception;

//    /**
//     * 添加模板
//     * @param ao
//     * @throws Exception
//     */
//    void addCheckTemplate(CheckTemplateAo ao)throws Exception;
    /**
     * 查看历史病历
     * @param caseID 病历id
     * @return
     * @throws Exception
     */
    QueryResult<CaseMedicalRecordEntity> queryHistoryCaseByCaseID(String caseID,int pageNo, int pageSize)throws Exception;

    /**
     * 更新诊断结果
     * @param id 病历id
     * @param diagnoseStatus 诊断状态
     * @throws Exception
     */
    void modifyDiagnosis(Long id, Integer diagnoseStatus)throws Exception;
}
